﻿using com.nm.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TerminalAPI.models
{
   public class ShopShelfModel
    {
        /// <summary>
        /// 店铺货架信息列表
        /// </summary>
        public class ListModel : ModifyModel
        {
            [ParamDescription("货架编号")]
            public string GSCode { get; set; }

            [ParamDescription("货架名称")]
            public string GSName { get; set; }

            [ParamDescription("图片地址")]
            public string ImageUrl { get; set; }

            [ParamDescription("创建时间")]
            public DateTime CreateDate { get; set; }

            [ParamDescription("删除标识")]
            public bool IsRemove { get; set; }
        }

        public class ModifyModel : CreateModel
        {
            [ParamDescription("ID")]
            public int SSID { get; set; }
        }

        /// <summary>
        /// 新增实体
        /// </summary>
        public class CreateModel
        {
            [ParamDescription("店铺编号")]
            public string ShopCode { get; set; }

            [ParamDescription("店铺名称")]
            public string ShopName { get; set; }

            [ParamDescription("货架ID")]
            public int GSID { get; set; }

            [ParamDescription("货架数量")]
            public int Qty { get; set; }
        }
    }

    public class LogModel
    {
        [ParamDescription("ID")]
        public int ID { get; set; }

        [ParamDescription("变更人")]
        public string Operator { get; set; }

        [ParamDescription("变更时间")]
        public DateTime OperatorDate { get; set; }

        [ParamDescription("变更对象")]
        public string Context { get; set; }

        [ParamDescription("说明")]
        public string Memo { get; set; }

        [ParamDescription("店铺编号")]
        public string ShopCode { get; set; }

        [ParamDescription("类型1-货架数量变更,2-货架陈列信息")]
        public int Type { get; set; }
    }

    public class ExportModel
    {
        public string ShopCode { get; set; }
        public string ShopName { get; set; }
        public string GsCode { get; set; }
        public string GsName { get; set; }
        public int Qty { get; set; }
    }
}
